package com.groups.entity;

import java.sql.Timestamp;

/**
 * Order entity. @author MyEclipse Persistence Tools
 */

public class Order implements java.io.Serializable {

	// Fields

	private Integer orderId;
	private User user;
	private Good good;
	private Integer count;
	private float sumPrice;
	private Timestamp orderTime;

	// Constructors

	/** default constructor */
	public Order() {
	}

	/** full constructor */
	public Order(User user, Good good, Integer count, float sumPrice,
			Timestamp orderTime) {
		this.user = user;
		this.good = good;
		this.count = count;
		this.sumPrice = sumPrice;
		this.orderTime = orderTime;
	}

	// Property accessors

	public Integer getOrderId() {
		return this.orderId;
	}

	public void setOrderId(Integer orderId) {
		this.orderId = orderId;
	}

	public User getUser() {
		return this.user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public Good getGood() {
		return this.good;
	}

	public void setGood(Good good) {
		this.good = good;
	}

	public Integer getCount() {
		return this.count;
	}

	public void setCount(Integer count) {
		this.count = count;
	}

	public Float getSumPrice() {
		return this.sumPrice;
	}

	public void setSumPrice(float sumPrice) {
		this.sumPrice = sumPrice;
	}

	public Timestamp getOrderTime() {
		return this.orderTime;
	}

	public void setOrderTime(Timestamp orderTime) {
		this.orderTime = orderTime;
	}

}